def return_data() :
    list1 = []
    while True :
        ques = str(input("是否要添加元素y/n："))
        if ques == 'y':
            a = int(input("请输入添加到列表的数字："))
        else:
            break
        list1.append(a)
    print("数组结构如下：",list1)
    total = 0
    ele = int(input("输入第几个元素："))
    ele -= 1
    if ele > len(list1) :
        print("-1")
    else:
        print("该位置的列表元素为：",list1[ele])
return_data()